home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-12 | 5.5 KB | 170 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Defines.k
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef DEFINES_K
- #define DEFINES_K
-
- #ifndef FWMENUS_K
- #include "FWMenus.k"
- #endif
-
- //-------------------------------------------------------------------------------------
- // Uncomment the following three lines, and define them appropriately!!
- // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
- // to be 1. Otherwise define it to be 0.
- // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
- // 1 to enable the extensions manager. Otherwise, define it to be 0.
- // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
- // define it to be zero. Note that if your part is scriptable is must support
- // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
-
- #define FW_SUPPORTS_EMBEDDING 0
- #define FW_SUPPORTS_EXTENSIONS 0
- #define FW_SUPPORTS_SCRIPTING 0
-
- #ifndef FW_SUPPORTS_EMBEDDING
- #error You must define FW_SUPPORTS_EMBEDDING to be 0 or 1 (immediately above)
- #endif
-
- #ifndef FW_SUPPORTS_EXTENSIONS
- #error You must define FW_SUPPORTS_EXTENSIONS to be 0 or 1 (immediately above)
- #endif
-
- #ifndef FW_SUPPORTS_SCRIPTING
- #error You must define FW_SUPPORTS_SCRIPTING to be 0 or 1 (immediately above)
- #endif
-
- //-------------------------------------------------------------------------------------
- // Part Resource IDs
- #define kPartIconID 128
- #define kMenuBar 1200
- #define kAboutBox 1024
- #define kDocumentWindowID 1024
-
- //-------------------------------------------------------------------------------------
- // Presentations
- #define kMainPresentation "Apple:Presentation:ODFIntlTest"
- #define kOpTestPresentation "Apple:Presentation:ODFIntlTest:OpTest"
- #define kReaderTestPresentation "Apple:Presentation:ODFIntlTest:ReaderTest"
- #define kNumberTestPresentation "Apple:Presentation:ODFIntlTest:NumberTest"
-
- //-------------------------------------------------------------------------------------
- // Strings
- #define kIntlTestPartStrings 1000
-
- #define kBlankString 1
- #define kFontMenuString 2
- #define kSizeMenuString 3
- #define kSize9 4
- #define kSize10 5
- #define kSize12 6
- #define kSize14 7
- #define kSize18 8
-
- #define kIntlTestUndoStrings 1002
-
- #define kUndoDragTextMsg 1
- #define kRedoDragTextMsg 2
- #define kUndoDropTextMsg 3
- #define kRedoDropTextMsg 4
- #define kUndoClearTextMsg 5
- #define kRedoClearTextMsg 6
- #define kUndoCutTextMsg 7
- #define kRedoCutTextMsg 8
- #define kUndoPasteTextMsg 9
- #define kRedoPasteTextMsg 10
- #define kUndoFontChangeMsg 11
- #define kRedoFontChangeMsg 12
- #define kUndoFontSizeMsg 13
- #define kRedoFontSizeMsg 14
-
- //-------------------------------------------------------------------------------------
- // Part Info
- #define kPartInfoID 1024
-
- //-------------------------------------------------------------------------------------
- // Command IDs
- #define cFirstCommand FW_kFirstUserCommandID
- #define cSecondCommand cFirstCommand + 1
- #define cThirdCommand cSecondCommand + 1
- #define cFourthCommand cThirdCommand + 1
- #define cFifthCommand cFourthCommand + 1
- #define cSixthCommand cFifthCommand + 1
- #define cSeventhCommand cSixthCommand + 1
- #define cEighthCommand cSeventhCommand + 1
- #define cNinthCommand cEighthCommand + 1
- #define cFontSize9 cNinthCommand + 1
- #define cFontSize10 cFontSize9 + 1
- #define cFontSize12 cFontSize10 + 1
- #define cFontSize14 cFontSize12 + 1
- #define cFontSize18 cFontSize14 + 1
- #define cFirstFontCommand cFontSize18 + 1
- // Subsequent command numbers used by fonts
-
- //-------------------------------------------------------------------------------------
- // IDs for the content view
- #define kIntlTestView 33
-
- //-------------------------------------------------------------------------------------
- // IDs for EditViews
- #define kEnglishEditView 1
- #define kJapaneseEditView 2
-
- //-------------------------------------------------------------------------------------
- // IDs for Test Strings
- #define kDefaultEngStringID 2001
- #define kDefaultJStringID 2002
-
- //-------------------------------------------------------------------------------------
- // IDs for Japanese Menu Strings
- #define kJMenuStringID 2003
-
- // Resource type for test FW_RStrings
- #define TESTSTRINGRES 'TEst'
-
- //-------------------------------------------------------------------------------------
- // IDs for operator[] test views and strings
- #define kOpTestDialog 42
- #define kOKButtonID 1
- #define kDoneButtonID 2
- #define kIndexEditID 3
- #define kStaticResultID 4
-
- #define kJTooBigStringID 2004
- #define kJNthCharStringID 2005
-
- #define kIntlTestStrings 1004
- #define kEngTooBigStringID 1
- #define kEngNthCharStringID 2
-
- //-------------------------------------------------------------------------------------
- // IDs for TextReader test views and strings
- #define kReaderTestDialog 44
- #define kBytePositionID 1
- // kDoneButtonID from above 2
- #define kGetCharAdvButtonID 3
- // kStaticResultID from above 4
- #define kBackupGetCharButtonID 5
- #define kAdvanceButtonID 6
- #define kBackupButtonID 7
- #define kPeekCharButtonID 8
-
- //-------------------------------------------------------------------------------------
- // IDs for NumberTest views and strings
- #define kNumberTestDialog 46
- // kOKButtonID from above 1
- // kDoneButtonID from above 2
- #define kNumberInputID 3
- // kStaticResultID from above 4
- #define kJCheckBoxID 5
-
-
- #endif
-
-